package cn.cslg.weatherforecast.design.strategy;

import android.content.Context;
import android.content.DialogInterface;
import android.media.AudioManager;
import android.media.SoundPool;
import android.support.v7.app.AlertDialog;
import android.view.View;

import cn.cslg.weatherforecast.MainActivity;
import cn.cslg.weatherforecast.R;

public class ClickOnAbout implements Strategy {
    @Override
    public void operation(Context context) {
        View view = View.inflate(context, R.layout.alert_dialog_layout, null);
        AlertDialog.Builder dialog = new AlertDialog.Builder(context);
        dialog.setTitle("关于")
                .setView(view)
                .setPositiveButton("确定", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {

                    }
                });
        dialog.show();
    }
}
